<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style type="text/css">
	label.col-2{width: 120px;}
	
	/*缩略图展示*/
	.uploader-blank{padding-top: 15px; width:158px;}
	.uploader-list{margin-bottom: 3px; position: relative;}
	.uploader-list img{height: 100px; width: 145px; border:#ccc 1px solid; padding: 3px;}
	.uploader-list .item{display: inline-block; text-align: center; position: relative; width: 157px;}
	.uploader-list .item .pic-box{border: #f0ecec 1px solid;}
	.uploader-list .item .state{position: absolute; bottom: -8px; text-align: center; background-color: #000; opacity: 0.6; color: #fff; padding: 1% 5%; width: 90%; overflow: hidden;}
	#filePicker{float: inherit;}

	/*附件列表*/
	.fujian{display: block; width: 100%;}
	.fujian li{list-style: none; width: auto; height: 50px; float: left; margin-right: 30px; position: relative; display: flex;}
	.fujian li img{width: 30px; height: 30px;}
	.fujian li i{ font-size: 18px; margin-left: 10px; margin-top: 2px; cursor: pointer;}
	.fujian li p{font-size: 12px; margin-left: 3px; line-height: 30px;}
	
	
	#slimg{position: absolute; bottom: 0px; left: 0px; width: 100%; height: 30px;}
	
</style>
<title>新增apk</title>
</head>
<body>
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="form1">
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>apk code：</label>
			<div class="formControls col-3">
				<input type="text" class="input-text" value="" placeholder="" id="apk_code" name="update_code" nullmsg="不能为空！" datatype="s1-100">
			</div>
			<!-- <div class="col-3"> </div> -->
			<!-- <div class="btn btn-secondary-outline radius col-2">检测重复</div> -->
		</div>
		
		
		
		<div class="row cl">
			<label class="form-label col-2">apk version:</label>
			<div class="formControls col-3">
				<input type="text" class="input-text" value="" placeholder="" id="apk_version" name="update_version">
			</div>
			
		</div>
		
		

		<div class="row cl">
			<div class="col-9">
				
				<div class="row cl">
					<label class="form-label col-2"><span class="c-red">*</span>更新日志：</label>
					<div class="formControls col-4">
						<textarea name="update_log" id="apk_log" cols="" rows="" class="textarea"  placeholder="更新日志..." nullmsg="文章标题不能为空！" datatype="*1-300"></textarea>
						<p class="textarea-numberbar"><em class="textarea-length">0</em>/300</p>
					</div>
				</div>
			</div>
			
			
		</div>
		
		
		
		

		<div class="row cl">
			<label class="form-label col-2">上传apk包：</label>
			<div class="formControls col-10" >
				<span class="l mb-10 fujian" id="fujian">
					<!-- <li><img src="/Upload/article/4/5721763bd1d88.jpg"><p>浪漫满屋.jpg</p><i class="Hui-iconfont" onclick="fj_close(this);">&#xe706;</i><input type="hidden" name="update_attachment[]" value="4/5721763bd1d88.jpg"></li> -->
				</span>
				<a id="btn-img" class="btn btn-secondary radius ml-10" onclick="_open('添加附件','article-imageupload.html?type=apk&idname=fujian&api=attachment&single=0&inputname=update_attachment','750px','470px',true)">上传apk</a>

			</div>
		</div>


	<div class="row cl pr-20" style="position:fixed; bottom:10px; width: 200px; right: 10px; text-align: right; z-index:1000; ">	
		<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
		<button onClick="removeIframe();" class="btn btn-default radius" type="button" style="margin-left:10px;">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>		
	</div>
</div>
</form>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 

<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 

<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script src="/Public/js/template-native.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 

<script type="text/javascript" src="lib/daterangepicker/moment.min.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/jquery.daterangepicker.js"></script>
<link rel="stylesheet" href="lib/daterangepicker/daterangepicker.css" /> 


<script type="text/javascript">
var classinfo;//栏目信息-编辑


function removeIframe(){
	var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}



 
$(function(){

	
	$("#form1").attr("action", API_APK); 

	var editid=getUrlParam('editid');//编辑菜单id
	if(editid!==null){	     
	    var eidturl=API_APK+"?id="+editid;
	    // 读取即将编辑的apk信息
	    $.getJSON(eidturl,function(data){

	    	if(!checkStatus(data)) return;//判断登录

	    	if(data.datas==''){
	    		// layer.msg("数据加载错误", {icon:2,time:1000});
	    	}else{
	       		

	           
	        }
	    })
	}

	Validformsubmit("#form1");

	
	
	
	
	


});


// 移除选中的图片
function fj_close(obj){
	$(obj).parents("li").remove();
}


</script>
</body>
</html>